/*package tests.services;

import kpi.java_training.testing.services.StringServices;
import org.junit.Assert;
import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

public class StringServicesTest {

    private boolean arraysEqual(String[] a1, String[] a2){
        if (a1.length != a2.length) {
            return false;
        }
        for (int i=0; i < a1.length; i++) {
            if (!a1[i].equals(a2[i])) {
                return false;
            }
        }
        return true;
    }

    @Test
    public void testMakeString() {
        String string1 = "string1";
        String string2 = "string2";
        Assert.assertEquals(StringServices.makeString(string1 ,string2), "string1\nstring2");
    }

    @Test
    public void testGetWords() {
        String[] result = {"2", "4", "1"};
        Assert.assertTrue(arraysEqual(StringServices.getWords(" 2   4 1   "), result));
    }

    @Test
    public void testGetSaveDataFromStringsEmpty() {
        List<String> strings = new ArrayList<String>();
        String s = StringServices.getSaveDataFromStrings(strings);
        Assert.assertEquals("0", s);
    }

    @Test
    public void testGetSaveDataFromStrings() {
        List<String> strings = new ArrayList<String>();
        strings.add("string1");
        strings.add("string2");
        String s = StringServices.getSaveDataFromStrings(strings);
        Assert.assertEquals("2\nstring1\nstring2", s);
    }

    @Test
    public void testGetSaveDataFromIntegersEmpty() {
        List<Integer> intArray = new ArrayList<Integer>();
        String s = StringServices.getSaveDataFromIntegers(intArray);
        Assert.assertEquals("0", s);
    }

    @Test
    public void testGetSaveDataFromIntegers() {
        List<Integer> intArray = new ArrayList<Integer>();
        intArray.add(99);
        intArray.add(108);
        intArray.add(2);
        String s = StringServices.getSaveDataFromIntegers(intArray);
        Assert.assertEquals("3\n99\n108\n2", s);
    }
}
       */